package top.buyibuyi.course.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import top.buyibuyi.course.R;
import top.buyibuyi.course.pojo.ChooseCourse;
import top.buyibuyi.course.service.UpdateChooseCourseBriefService;

@RestController
@CrossOrigin
@RequestMapping("/course")
public class UpdateChooseCourseBriefController {

    @Autowired
    private UpdateChooseCourseBriefService updateChooseCourseBriefService;

    @PostMapping("/updateBrief")
    public R updateBrief(@RequestBody ChooseCourse chooseCourse){

        Boolean aBoolean = updateChooseCourseBriefService.updateBrief(chooseCourse);
        return R.ok().data("data",aBoolean);

    }
}
